import request from "@/utils/request";

export const getcategoriesList = (data) => {
  return request({
    method: "get",
    url: "categories",
    params: data,
  });
};
export const getCategories = () => {
  return request({
    method: "get",
    url: "/categories",
    params: {
      type: 2,
    },
  });
};
export const addjiekou = (data) => {
  return request({
    method: "post",
    url: "/categories",
    data,
  });
};
